package com.hq.ims.data.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.hq.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * jiang bai ping
 *
 * @Email 526666031@qq.com
 * @Detail 系统异常日志
 */
@Data
@Alias("LogSysException")
@TableName(value = "log_sys_exception")
@ApiModel(value = "系统异常日志")
public class LogSysException extends BaseModel<LogSysException> implements Serializable {

    @ApiModelProperty(value = "ID")
    @TableId(value = "`log_sys_exception_id`", type = IdType.ASSIGN_UUID)
    private String logSysExceptionId;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "`create_date_time`", fill = FieldFill.INSERT)
    private LocalDateTime createDateTime;

    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "`update_date_time`", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateDateTime;

    @ApiModelProperty(value = "异常主要名称")
    @TableField(value = "`exception_main_name`")
    private String exceptionMainName;

    @ApiModelProperty(value = "异常详情")
    @TableField(value = "`exception_detail`")
    private String exceptionDetail;


    @ApiModelProperty(value = "创建人姓名")
    @TableField(value = "`create_user_name`", fill = FieldFill.INSERT)
    private String createUserName;

    @ApiModelProperty(value = "")
    @TableField(value = "`version`")
    private Integer version;

    @ApiModelProperty(value = "是否删除")
    @TableField(value = "`is_del`")
    private Boolean isDel;
}
